import Vue from 'vue'
import Router from 'vue-router'
import index from '@/views/index'
import tag from '@/views/tag'
import editor from '@/views/editor'
import setStore from '@/views/store/setStore'
import getStore from '@/views/store/getStore'
import face from '@/views/face'
import chat from '@/views/websocket/chatRoom'
import demo1 from '@/views/demo1'
import chart from '@/views/charts/index'
import promise from '@/views/promise'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'promise',
      component: promise
    },
    {
      path: '/chart',
      name: 'chart',
      component: chart
    },
    {
      path: '/demo1',
      name: 'demo1',
      component: demo1
    },
    {
      path: '/chat',
      name: 'chat',
      component: chat
    },
    {
      path: '/editor',
      name: 'editor',
      component: editor
    },
    {
      path: '/index',
      name: 'index',
      component: index
    },
    {
      path: '/tag',
      name: 'tag',
      component: tag
    },
    {
      path: '/setStore',
      name: 'setStore',
      component: setStore
    },
    {
      path: '/getStore',
      name: 'getStore',
      component: getStore
    },
    {
      path: '/face',
      name: 'face',
      component: face
    }
  ]
})
